package com.attendance.controller;

import com.attendance.model.Test;
import com.attendance.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.Map;

/**
 * Created by inuyasha on 2016/11/17.
 */
@Controller
public class TestController {

    @Autowired
    private TestService testService;

    @RequestMapping("/")
    public String hello(Map<String,Object> model){
        model.put("time",new Date());
        model.put("message","hello ");
        return "test";
    }
}
